/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package cn.eclass.bean.api;

import cn.eclass.entity.Entity;
import java.util.List;

/**
 *
 * @author fortruth
 */
public interface ICommonBean<T extends Entity> {

    public T add(T entity);

    public boolean update(T entity);

    public boolean delete(int id);

    public T get(int id);

    public List<T> list();
}
